package com.mooc.house.service;


import com.mooc.house.mapper.CommunityMapper;
import com.mooc.house.model.Community;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CommunityService {


    @Autowired
    private CommunityMapper communityMapper;

    public List<Community> getAllCommunity() {
         return  communityMapper.getAllCommunity();
    }


}
